// NokeyDialog.cpp : implementation file
//

#include "stdafx.h"
#include "UsbPhTest.h"
#include "NokeyDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNokeyDialog dialog


CNokeyDialog::CNokeyDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CNokeyDialog::IDD, pParent)
{
	EnableAutomation();

	//{{AFX_DATA_INIT(CNokeyDialog)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CNokeyDialog::OnFinalRelease()
{
	// When the last reference for an automation object is released
	// OnFinalRelease is called.  The base class will automatically
	// deletes the object.  Add additional cleanup required for your
	// object before calling the base class.

	CDialog::OnFinalRelease();
}

void CNokeyDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNokeyDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNokeyDialog, CDialog)
	//{{AFX_MSG_MAP(CNokeyDialog)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CNokeyDialog, CDialog)
	//{{AFX_DISPATCH_MAP(CNokeyDialog)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_INokeyDialog to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {FE5DC6B5-169D-4152-B789-E32F13C555A5}
static const IID IID_INokeyDialog =
{ 0xfe5dc6b5, 0x169d, 0x4152, { 0xb7, 0x89, 0xe3, 0x2f, 0x13, 0xc5, 0x55, 0xa5 } };

BEGIN_INTERFACE_MAP(CNokeyDialog, CDialog)
	INTERFACE_PART(CNokeyDialog, IID_INokeyDialog, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNokeyDialog message handlers

BOOL CNokeyDialog::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if( pMsg->message == WM_KEYDOWN || pMsg->message == WM_KEYUP )
    {
        return FALSE;
    }

	return CDialog::PreTranslateMessage(pMsg);
}
